<template>
  <div class="container">
    <div class="base-info">
      <!-- 用户头像 -->
      <div class="user-look">
        <img :src="avator" alt="">
      </div>
      <!-- 用户名 -->
      <div class="user-name">
        <p>我是vue爱好者</p>
        <p class="babel">普通用户</p>
        <p></p>
      </div>
      <van-icon class="setting-icon" name="setting"></van-icon>
    </div>
    <tab-bar :active="3"></tab-bar>
  </div>
</template>

<script>
import tabBar from '../base/tabBar.vue'
import avator from '../../assets/avator.svg'
export default {
  name: 'Personal',
  data(){
    return {
      avator
    }
  },
  components: {
    tabBar
  },
  destoryed(){}
}
</script>

<style scoped lang="less">
.container{
  background-color:#dddddd38;
  .base-info{
    background-color:lightgrey;
    display:flex;
    padding:0.5rem 1rem;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items:center;
    position:relative;
    .user-look{
      width:1.5rem;
      height:1.5rem;
      margin-right:0.3rem;
      img{
        width:100%;
        height:100%;
        border-radius:50%;
      }
    }
    .user-name{
      line-height:1.5;
      text-align:left;
      .babel{
        font-weight:bold;
        font-size:14px;
        margin-top:4px;
      }
    }
    .setting-icon{
      position:absolute;
      right:15px;
      top:10px;
    }
  }
}
</style>